package demo.classA;

public class ResponseCompare  {

   static   String packageName=ResponseCompare.class.getPackage().getName()+".ResponseCompare";

    public static void main(String[] args) {
        System.out.println(ResponseCompare.class.getPackage().getName());
        rsCompare();
    }

    public static void rsCompare(){
        ResponseCompare responseCompare =  getResponseCompare();
        responseCompare.reCompare();
    }

    private static ResponseCompare getResponseCompare() {
        try {
            Class<?> calzz=Class.forName(packageName+"C");

            return (ResponseCompare)calzz.newInstance();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }

        return null;
    }

    public void reCompare(){

    }


}
